/*
 * @Description:
 * @Author: Zzt
 * @Date: 2022-08-05 09:31:57
 * @LastEditTime: 2022-12-30 13:58:26
 */
import { lazy } from 'react';
import Layout from '@/layout';
import lazyLoad from '../components/lazyLoad';
import { AppstoreOutlined } from '@ant-design/icons';

// const AccessionArchiving = lazy(
//   () => import(/* webpackChunkName: "Accession" */ '@/view/accession/Archiving/ArchivingMain')
// );
// const AccessionAccession = lazy(
//   () => import(/* webpackChunkName: "Accession" */ '@/view/accession/Accession/AccessionMain')
// );
// const AccessionEstray = lazy(
//   () => import(/* webpackChunkName: "Accession" */ '@/view/accession/EstrayRecord/EstrayRecordMain')
// );
// export const AccessionBatchManage = lazy(
//   () => import(/* webpackChunkName: "Accession" */ '@/view/accession/BatchManage/BatchManageMain')
// );

export const AccessionReceivingReview = lazy(
  () =>
    import(
      /* webpackChunkName: "Accession" */ '@/view/accession/ReceivingReview/ReceivingReviewMain'
    )
);

export const AccessionStandardizedDetection = lazy(
  () =>
    import(
      /* webpackChunkName: "Accession" */ '@/view/accession/StandardizedDetection/StandardizedDetectionMain'
    )
);

export const BusinessGuidanceAccession = lazy(
  () =>
    import(
      /* webpackChunkName: "Accession" */ '@/view/accession/BusinessGuidanceAccession/BusinessGuidanceAccession'
    )
);
export const AnnualInspectionAccession = lazy(
  () =>
    import(
      /* webpackChunkName: "Accession" */ '@/view/accession/AnnualInspectionAccession/AnnualInspectionAccession'
    )
);
export const WrittenFeedbackAccession = lazy(
  () =>
    import(
      /* webpackChunkName: "Accession" */ '@/view/accession/WrittenFeedbackAccession/WrittenFeedbackAccession'
    )
);
export const AccessionElectronicRecord = lazy(
  () =>
    import(
      /* webpackChunkName: "Accession" */ '@/view/accession/ElectronicRecordAccession/ElectronicRecordAccessionMain'
    )
);

export const AccessionDigitalCopy = lazy(
  () =>
    import(
      /* webpackChunkName: "Accession" */ '@/view/accession/DigitalCopyAccession/DigitalCopyAccessionMain'
    )
);

export const AccessionDigitalResource = lazy(
  () =>
    import(
      /* webpackChunkName: "Accession" */ '@/view/accession/DigitalResourceAccession/DigitalResourceAccessionMain'
    )
);

export const AccessionPublic = lazy(
  () =>
    import(
      /* webpackChunkName: "Accession" */ '@/view/accession/PublicAccession/PublicAccessionMain'
    )
);

export const AccessionDB = lazy(
  () => import(/* webpackChunkName: "Accession" */ '@/view/accession/DBAccession/DBAccessionMain')
);

export const AccessionOnline = lazy(
  () =>
    import(
      /* webpackChunkName: "Accession" */ '@/view/accession/OnlineAccession/OnlineAccessionMain'
    )
);

export const AccessionAccessionMgt = lazy(
  () => import(/* webpackChunkName: "Accession" */ '@/view/accession/AccessionMgt/AccessionMgtMain')
);

// 档案归集 - 虚拟档案室用
export const AccessionCollection = lazy(
  () =>
    import(
      /* webpackChunkName: "Accession" */ '@/view/accession/CollectionAccession/CollectionAccessionMain'
    )
);

const accessionRoutes: any[] = [
  {
    path: '/access',
    element: <Layout />,
    icon: <AppstoreOutlined />,
    meta: {
      title: '档案接收'
    },
    children: [
      // {
      //   path: 'accession',
      //   element: <AccessionAccession />,
      //   meta: {
      //     title: '接收'
      //   }
      // },
      // {
      //   path: 'arrangement',
      //   element: <PendingList />,
      //   meta: {
      //     title: '整编'
      //   }
      // },
      // {
      //   path: 'archiving',
      //   element: lazyLoad(AccessionArchiving),
      //   meta: {
      //     title: '归档审批'
      //   }
      // },
      // {
      //   path: 'estray',
      //   element: <AccessionEstray />,
      //   meta: {
      //     title: '散文件库'
      //   }
      // },
      // {
      //   path: 'batch-manage',
      //   element: lazyLoad(AccessionBatchManage),
      //   meta: {
      //     title: '批次管理'
      //   }
      // },
      {
        path: 'standardized-detection',
        element: lazyLoad(AccessionStandardizedDetection),
        meta: {
          title: '规范性检测'
        }
      }
      // {
      //   path: 'receiving-review',
      //   element: lazyLoad( ),
      //   meta: {
      //     title: '部门接收审核'
      //   }
      // },
      // {
      //   path: 'business-guidance',
      //   element: lazyLoad(AccessionBusinessGuidance),
      //   meta: {
      //     title: '在线业务指导'
      //   }
      // }
    ]
  }
];

export default accessionRoutes;
